(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["components/QS-Masonry/QS-Masonry"],{

/***/ 331:
/*!***************************************************************************!*\
  !*** D:/shiyan/SmartCampus-frontend/components/QS-Masonry/QS-Masonry.vue ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _QS_Masonry_vue_vue_type_template_id_786e4384_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./QS-Masonry.vue?vue&type=template&id=786e4384&scoped=true& */ 332);
/* harmony import */ var _QS_Masonry_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./QS-Masonry.vue?vue&type=script&lang=js& */ 334);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _QS_Masonry_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _QS_Masonry_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _QS_Masonry_vue_vue_type_style_index_0_id_786e4384_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./QS-Masonry.vue?vue&type=style&index=0&id=786e4384&scoped=true&lang=css& */ 338);
/* harmony import */ var _appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../appinstall/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 10);

var renderjs





/* normalize component */

var component = Object(_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  _QS_Masonry_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  _QS_Masonry_vue_vue_type_template_id_786e4384_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
  _QS_Masonry_vue_vue_type_template_id_786e4384_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  "786e4384",
  null,
  false,
  _QS_Masonry_vue_vue_type_template_id_786e4384_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
  renderjs
)

component.options.__file = "components/QS-Masonry/QS-Masonry.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 332:
/*!**********************************************************************************************************************!*\
  !*** D:/shiyan/SmartCampus-frontend/components/QS-Masonry/QS-Masonry.vue?vue&type=template&id=786e4384&scoped=true& ***!
  \**********************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_QS_Masonry_vue_vue_type_template_id_786e4384_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../appinstall/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../appinstall/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../appinstall/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../appinstall/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../appinstall/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../appinstall/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./QS-Masonry.vue?vue&type=template&id=786e4384&scoped=true& */ 333);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_QS_Masonry_vue_vue_type_template_id_786e4384_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_QS_Masonry_vue_vue_type_template_id_786e4384_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_QS_Masonry_vue_vue_type_template_id_786e4384_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_QS_Masonry_vue_vue_type_template_id_786e4384_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });



/***/ }),

/***/ 333:
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/shiyan/SmartCampus-frontend/components/QS-Masonry/QS-Masonry.vue?vue&type=template&id=786e4384&scoped=true& ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
var components
var render = function() {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true



/***/ }),

/***/ 334:
/*!****************************************************************************************************!*\
  !*** D:/shiyan/SmartCampus-frontend/components/QS-Masonry/QS-Masonry.vue?vue&type=script&lang=js& ***!
  \****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _appinstall_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_QS_Masonry_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../appinstall/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../appinstall/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../appinstall/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../appinstall/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../appinstall/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./QS-Masonry.vue?vue&type=script&lang=js& */ 335);
/* harmony import */ var _appinstall_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_QS_Masonry_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_QS_Masonry_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _appinstall_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_QS_Masonry_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _appinstall_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_QS_Masonry_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_QS_Masonry_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 335:
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/shiyan/SmartCampus-frontend/components/QS-Masonry/QS-Masonry.vue?vue&type=script&lang=js& ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 19));

















var _QSUtils = __webpack_require__(/*! ./js/QS-Utils.js */ 336);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {try {var info = gen[key](arg);var value = info.value;} catch (error) {reject(error);return;}if (info.done) {resolve(value);} else {Promise.resolve(value).then(_next, _throw);}}function _asyncToGenerator(fn) {return function () {var self = this,args = arguments;return new Promise(function (resolve, reject) {var gen = fn.apply(self, args);function _next(value) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);}function _throw(err) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);}_next(undefined);});};}function _toConsumableArray(arr) {return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();}function _nonIterableSpread() {throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _iterableToArray(iter) {if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);}function _arrayWithoutHoles(arr) {if (Array.isArray(arr)) return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) {arr2[i] = arr[i];}return arr2;}var QSMasonryTemplate = function QSMasonryTemplate() {__webpack_require__.e(/*! require.ensure | components/QS-Masonry/QS-Masonry-Template */ "components/QS-Masonry/QS-Masonry-Template").then((function () {return resolve(__webpack_require__(/*! ./QS-Masonry-Template.vue */ 340));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};



function getDefLists(col) {
  var arr = [];
  for (var i = 0; i < Number(col); i++) {
    arr.push({
      list: [],
      id: String(i),
      height: 0 });

  }
  return arr;
}var _default2 =
{
  components: {
    QSMasonryTemplate: QSMasonryTemplate },

  props: {
    type: { //列表type 用于模板分流组件区分不同的模板
      type: String,
      default: '' },

    list: { //list数组
      type: Array,
      default: function _default() {return [];} },

    col: { //列数
      type: [Number, String],
      default: 2 },

    padding: { //最外部的间距
      type: String,
      default: '20rpx' },

    colSpace: { //列之间的间距
      type: [Number, String],
      default: uni.upx2px(15) },

    itemSpace: { //每项之间的上下间距
      type: [Number, String],
      default: '10px' },

    hasImage: {
      type: [Boolean, String],
      default: false } },


  data: function data() {
    return {
      lists: getDefLists(Number(this.col)),
      data: [],
      nData: [],
      list_hide: [],
      maxWidth: 0,
      currentCount: 0,
      working: false,
      workQueue: [] };

  },
  watch: {
    list: function list(newValue) {
      console.log('执行setData 1');
      this.setData(newValue);
    },
    col: function col(newValue) {var _this2 = this;
      console.log('col参数改变:' + newValue);
      console.log('data:' + JSON.stringify(this.data));
      // this.resetLists();
      this.lists = getDefLists(Number(newValue));
      this.$nextTick(function () {
        console.log('执行setData 2');
        _this2.setData(_this2.data);
      });
    } },

  computed: {
    getCol: function getCol() {
      var arr = [];
      for (var i = 0; i < Number(this.col); i++) {
        arr.push('');
      }
      return arr;
    },
    getColWidth: function getColWidth() {
      if (this.maxWidth) {
        var col = Number(this.col);
        var colWidth = (this.maxWidth - Number(this.colSpace) * (col - 1)) / col;
        return "".concat(colWidth, "px");
      }
      return 0;
    } },

  mounted: function mounted() {
    console.log(this.list.length);
    if (this.list.length > 0) {
      console.log('list 长度 大于零 执行setData');
      this.setData(this.list);
    }
  },
  methods: {
    getMaxWidth: function getMaxWidth() {var _this3 = this;
      return new Promise(function (rs, rj) {
        var view;




        view = uni.createSelectorQuery().in(_this3);

        view.select('.QS-Masonry-container').fields({
          size: true });

        view.exec(function (data) {
          _this3.maxWidth = data[0] ? data[0].width : 342;
          rs();
        });
      });
    },
    getListInfo: function getListInfo(list, currentCount, type) {
      var _this = this;
      return new Promise(function (rs, rj) {
        var ref = _this.$refs.QSMasonryHideTemplate;
        try {
          ref.setHideList(_toConsumableArray(list), function () {
            ref.getQuery().then(function (data) {
              ref.clearHideList();
              if (_this.currentCount - 1 === currentCount || type === 'add') {
                rs(data);
              } else {
                rj();
              }
            });
          });
        } catch (e) {
          //TODO handle the exception
          rj(e);
        }
      });
    },
    add: function add(newList) {
      if (this.working) {
        this.workQueue.push(newList);
      } else {
        this.addFn(newList);
      }
    },
    addFn: function addFn(newList) {var _this4 = this;return _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee() {var currentCount, list;return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:
                if (!_this4.working) _this4.working = true;
                // console.log('增加列表数据:' + JSON.stringify(newList));
                if (_this4.currentCount > 999999) _this4.currentCount = 0;
                currentCount = _this4.currentCount++;
                // console.log('当前次数:' + currentCount);
                _context.prev = 3;if (
                (0, _QSUtils.isArray)(newList)) {_context.next = 7;break;}
                console.log('QSMasonry异常: 不是数组');return _context.abrupt("return");case 7:


                list = JSON.parse(JSON.stringify(newList));
                _this4.nData = _this4.nData.concat(list);
                console.log(_this4.nData);if (
                _this4.maxWidth) {_context.next = 13;break;}_context.next = 13;return _this4.getMaxWidth();case 13:_context.next = 15;return (
                  _this4.updateLists(list, currentCount, 'add'));case 15:_context.next = 19;break;case 17:_context.prev = 17;_context.t0 = _context["catch"](3);case 19:



                if (_this4.working) _this4.working = false;
                if (_this4.workQueue.length > 0) {
                  _this4.addFn(_this4.workQueue[0]);
                  _this4.workQueue.splice(0, 1);
                }case 21:case "end":return _context.stop();}}}, _callee, null, [[3, 17]]);}))();
    },
    setData: function setData(newList) {var _this5 = this;return _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee2() {var currentCount, list;return _regenerator.default.wrap(function _callee2$(_context2) {while (1) {switch (_context2.prev = _context2.next) {case 0:
                // console.log('设置列表数据:' + JSON.stringify(newList));
                if (_this5.currentCount > 999999) _this5.currentCount = 0;
                currentCount = _this5.currentCount++;
                // console.log('当前次数:' + currentCount);
                _context2.prev = 2;if (
                (0, _QSUtils.isArray)(newList)) {_context2.next = 6;break;}
                console.log('QSMasonry异常: 不是数组');return _context2.abrupt("return");case 6:


                list = JSON.parse(JSON.stringify(newList));
                _this5.nData = list;if (
                _this5.maxWidth) {_context2.next = 11;break;}_context2.next = 11;return _this5.getMaxWidth();case 11:
                if (list.length > 0) {
                  // console.log('list length 大于 0')
                  if (list.length > _this5.data.length) {
                    // console.log('list length 大于 old list length， 执行 增加 列表操作')
                    _this5.updateLists(list.slice(_this5.data.length, list.length), currentCount, 'setData');
                  } else {
                    console.log('list length 不大于 old list length， 先执行 清空列表操作再执行增加列表操作');
                    _this5.resetLists();
                    _this5.nData = list;
                    _this5.updateLists(list, currentCount, 'setData');
                  }
                } else {
                  console.log('list length 等于 0， 执行清空列表操作');
                  _this5.resetLists();
                }
                // console.log('nData 赋值:' + JSON.stringify(this.nData))
                _context2.next = 16;break;case 14:_context2.prev = 14;_context2.t0 = _context2["catch"](2);case 16:case "end":return _context2.stop();}}}, _callee2, null, [[2, 14]]);}))();


    },
    updateListsHeight: function updateListsHeight(currentCount, type) {var _this6 = this;
      return new Promise( /*#__PURE__*/function () {var _ref = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee3(rs, rj) {var promises, refs, i, infos, _i, item;return _regenerator.default.wrap(function _callee3$(_context3) {while (1) {switch (_context3.prev = _context3.next) {case 0:
                  promises = [];
                  refs = _this6.$refs.QSMasonryTemplate;
                  for (i = 0; i < _this6.lists.length; i++) {
                    promises.push(refs[i].getBoxQuery());
                  }_context3.next = 5;return (
                    Promise.all(promises));case 5:infos = _context3.sent;
                  for (_i = 0; _i < infos.length; _i++) {
                    item = infos[_i];
                    if (item && item.height !== undefined)
                    _this6.lists[_i].height = item.height;
                  }
                  if (_this6.currentCount - 1 === currentCount || type === 'add') {
                    rs();
                  } else {
                    rj();
                  }case 8:case "end":return _context3.stop();}}}, _callee3);}));return function (_x, _x2) {return _ref.apply(this, arguments);};}());

    },
    updateLists: function updateLists(list, currentCount, type) {var _this7 = this;
      return new Promise( /*#__PURE__*/function () {var _ref2 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee4(rs, rj) {var listInfo, i;return _regenerator.default.wrap(function _callee4$(_context4) {while (1) {switch (_context4.prev = _context4.next) {case 0:_context4.prev = 0;if (!(

                  _this7.currentCount - 1 === currentCount)) {_context4.next = 4;break;}_context4.next = 4;return (

                    _this7.updateListsHeight(currentCount, type));case 4:_context4.next = 6;return (

                    _this7.getListInfo(list, currentCount, type));case 6:listInfo = _context4.sent;
                  // console.log('获取列表布局信息: ' + JSON.stringify(listInfo))
                  if (_this7.currentCount - 1 === currentCount || type === 'add') {
                    for (i = 0; i < list.length; i++) {
                      _this7.addListData(list[i], listInfo[i]);
                    }
                    _this7.$nextTick(function () {
                      _this7.data = _toConsumableArray(_this7.nData);
                      console.log('nData：' + JSON.stringify(_this7.nData));
                      console.log('设置data：' + JSON.stringify(_this7.data));
                      _this7.$emit('updated');
                      rs();
                    });
                  } else {
                    rs();
                  }_context4.next = 13;break;case 10:_context4.prev = 10;_context4.t0 = _context4["catch"](0);

                  //TODO handle the exception
                  rj();case 13:case "end":return _context4.stop();}}}, _callee4, null, [[0, 10]]);}));return function (_x3, _x4) {return _ref2.apply(this, arguments);};}());


    },
    addListData: function addListData(data, info) {
      var lists = this.lists;
      var obj = lists[0];
      for (var i = 1; i < lists.length; i++) {
        if (obj.height > lists[i].height) obj = lists[i];
      }
      obj.list.push(data);
      obj.height += info === null ? 10 : info.height;
    },
    resetLists: function resetLists() {
      // console.log('清空瀑布流列表')
      var lists = this.lists;
      for (var i = 0; i < lists.length; i++) {
        while (lists[i].list.length > 0) {
          lists[i].list.pop();
        }
        lists[i].height = 0;
      }
      console.log('清空nData');
      this.nData = [];
      this.data = [];
    },
    reset: function reset() {
      console.log('外部调用 reset');
      this.resetLists();
    } } };exports.default = _default2;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))

/***/ }),

/***/ 338:
/*!************************************************************************************************************************************!*\
  !*** D:/shiyan/SmartCampus-frontend/components/QS-Masonry/QS-Masonry.vue?vue&type=style&index=0&id=786e4384&scoped=true&lang=css& ***!
  \************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _appinstall_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_QS_Masonry_vue_vue_type_style_index_0_id_786e4384_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../appinstall/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../appinstall/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../appinstall/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../appinstall/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!../../../../appinstall/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--6-oneOf-1-3!../../../../appinstall/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../appinstall/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./QS-Masonry.vue?vue&type=style&index=0&id=786e4384&scoped=true&lang=css& */ 339);
/* harmony import */ var _appinstall_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_QS_Masonry_vue_vue_type_style_index_0_id_786e4384_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_QS_Masonry_vue_vue_type_style_index_0_id_786e4384_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _appinstall_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_QS_Masonry_vue_vue_type_style_index_0_id_786e4384_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _appinstall_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_QS_Masonry_vue_vue_type_style_index_0_id_786e4384_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_appinstall_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_QS_Masonry_vue_vue_type_style_index_0_id_786e4384_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 339:
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!./node_modules/postcss-loader/src??ref--6-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/shiyan/SmartCampus-frontend/components/QS-Masonry/QS-Masonry.vue?vue&type=style&index=0&id=786e4384&scoped=true&lang=css& ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin
    if(false) { var cssReload; }
  

/***/ })

}]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/QS-Masonry/QS-Masonry.js.map
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/QS-Masonry/QS-Masonry-create-component',
    {
        'components/QS-Masonry/QS-Masonry-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('1')['createComponent'](__webpack_require__(331))
        })
    },
    [['components/QS-Masonry/QS-Masonry-create-component']]
]);
